Skip to content

Add a Gradle plugin for declarative cache control #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed

Conversation

BoD
Copy link
Collaborator

@BoD BoD commented Sep 27, 2024

From the @CacheControl and @CacheControlField directives, will generate something like:

public object Cache {
  public val maxAges: Map<String, MaxAge> = mapOf(
    "Query.cachedBook" to MaxAge.Duration(60.seconds),
    "User" to MaxAge.Duration(10.seconds),
    "Reader.book" to MaxAge.Inherit,
  )
}

which can then be passed to ExpirationCacheResolver

@BoD
Copy link
Collaborator Author

BoD commented Oct 1, 2024

Close in favor of #44

@BoD BoD closed this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant